package com.example.dao;
import com.example.bean.LearningHistory;
import java.util.List;



public interface LearningDao {

    Integer getUserIdByUserName(String username);
    Long findCourseIdByContent(String content);
    Integer getExpByCourseId(Long courseId);
    boolean levelUpForCourse(String username, Integer courseExp);

    List<LearningHistory> findLearningHistoryByUserId(Integer userId);
    List<LearningHistory> findPracticeHistoryByUserId(Integer userId);
    Integer countAlgorithmNo(Integer userId);
    Integer countCourseNo(Integer userId);

    void insertLearningRecord(Integer userId, Long courseId);

}
